package com.gcb.mapper;

import com.gcb.domain.bo.DockBIBO;
import com.gcb.domain.dto.WharfQueryDTO;
import com.gcb.domain.dto.WharfSaveDTO;
import com.gcb.domain.entity.Wharf;
import com.gcb.domain.vo.WharfVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface WharfMapper {
    void add(Wharf wharf);

    void update(Wharf wharf);

    List<WharfVO> list(WharfQueryDTO dto);

    WharfVO getById(Long id);

    void batchUpdateStatus(@Param("ids") List<Long> ids,
                           @Param("status") Integer status,
                           @Param("updateBy") Long updateBy);

    void batchUpdateBusinesses(@Param("ids") List<Long> ids,
                               @Param("businessesId") Long businessesId,
                               @Param("updateBy") Long updateBy);

    List<Wharf> getByBusinessesId(Long businessesId);

    void delete(Long id);

    List<DockBIBO> selectBIList(@Param("flag") Integer flag,
                                @Param("city") String city);

}
